package main

import "fmt"

type Phone interface {
	whoAmI()
}

type Apple struct {

}

func (apple Apple) whoAmI() {
	fmt.Println("I am apple")
}

type Nokia struct {

}

func (nokia Nokia) whoAmI() {
	fmt.Println("I am nokia")
}


func main() {
	var phoneA Phone = new(Apple)
	phoneA.whoAmI()

	var phoneB Phone = new(Nokia)
	phoneB.whoAmI()
}